﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8" />
    <title>Ping: com.stateforge.statemachine.examples.ping.Ping Class Reference</title>
    <link href="/Content/Help.css" rel="stylesheet" type="text/css" />
    <link href="/Content/css/tabs.css" rel="stylesheet" type="text/css" />
    <link href="/Content/css/doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <div id="header">
        <img id="logo" alt="StateForge" src="/Content/Images/StateForgeLogo.png" />
        <div id="title">
            <h1>
                Examples using state machines generated by StateBuilderJava
            </h1>
            <h3>
                Ping: com.stateforge.statemachine.examples.ping.Ping Class Reference
            </h3>
        </div>
        <div id="menucontainer">
            <ul id="menu">
                <li><a href="/">Home</a></li>
                <li><a href="/Home/Download">Downloads</a></li>
                <li><a href="/Help/state-machine-tools.aspx">Help</a></li>
                <li><a href="/Home/Faq">F.A.Q</a></li>
                <li><a href="/Home/About">Contact us</a></li>
            </ul>
        </div>
    </div>
<!-- Generated by Doxygen 1.7.4 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespacecom.html">com</a>      </li>
      <li class="navelem"><a class="el" href="namespacecom_1_1stateforge.html">stateforge</a>      </li>
      <li class="navelem"><a class="el" href="namespacecom_1_1stateforge_1_1statemachine.html">statemachine</a>      </li>
      <li class="navelem"><a class="el" href="namespacecom_1_1stateforge_1_1statemachine_1_1examples.html">examples</a>      </li>
      <li class="navelem"><a class="el" href="namespacecom_1_1stateforge_1_1statemachine_1_1examples_1_1ping.html">ping</a>      </li>
      <li class="navelem"><a class="el" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html">Ping</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="#pri-static-attribs">Static Private Attributes</a>  </div>
  <div class="headertitle">
<div class="title">com.stateforge.statemachine.examples.ping.Ping Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="com::stateforge::statemachine::examples::ping::Ping" -->
<p><a href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#a251b24caadc441d7bc668f9de756f2ad">Ping</a> (final <a class="el" href="interfacecom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_i_ping_listener.html">IPingListener</a> <a class="el" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#a1aa39c43bf959eb6bb938adf99649112">listener</a>)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#a1d42d3706befbf16c5bb374a677d08a9">getRx</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#aa6e6f3b50e02ba2131c2d46eeff8ca77">setRx</a> (int <a class="el" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#a3663cc57d600f444c8890aadf539d7ce">rx</a>)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#a3d411127043d4fb5f84dd508cffc6192">getTx</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#a664f776e73fb8418e4b39b9f6f211734">setTx</a> (int <a class="el" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#a9671e1e8f3d8844ec5ba49c20602fedf">tx</a>)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#a5c370c554efb0f933a7362a8cbff5319">getCount</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#a3b929c12421e3421c968fbb2dc730c0f">setCount</a> (int <a class="el" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#a6fe2bc15c87cda622ee2997b7750757f">count</a>)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#a15fc08493b6000c375041660f6cbb858">getTimeout</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#aae8b319bed35cc56f584119ef93d5422">setTimeout</a> (long <a class="el" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#aa066bc6d8f7649c28e3a86e6bcb5a11d">timeout</a>)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#a119882e2142830ea9ca3ed3fe035d8a7">send</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#a2f4d03d331d0fc751ebac432fb2cb0a9">start</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#ac0899a56518a4090289cd022b8870de9">printStatistics</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_echo_client.html">EchoClient</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#af56354b7b8c942d66b5a0f17252c0e91">echoClient</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">final PingContext&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#a241ba63cfe6f227a670dd658a2efe345">context</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#a3663cc57d600f444c8890aadf539d7ce">rx</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#a9671e1e8f3d8844ec5ba49c20602fedf">tx</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#a6fe2bc15c87cda622ee2997b7750757f">count</a> = 5</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#aa066bc6d8f7649c28e3a86e6bcb5a11d">timeout</a> = 1000</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">final <a class="el" href="interfacecom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_i_ping_listener.html">IPingListener</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#a1aa39c43bf959eb6bb938adf99649112">listener</a></td></tr>
<tr><td colspan="2"><h2><a name="pri-static-attribs"></a>
Static Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static final Logger&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#a00abd306f3ef80fa11e7ca1bc5de492e">logger</a> = Logger.getLogger(Ping.class.getName())</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p><a class="el" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html">Ping</a> </p>

<p>Definition at line <a class="el" href="_ping_8java_source.html#l00013">13</a> of file <a class="el" href="_ping_8java_source.html">Ping.java</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a251b24caadc441d7bc668f9de756f2ad"></a><!-- doxytag: member="com::stateforge::statemachine::examples::ping::Ping::Ping" ref="a251b24caadc441d7bc668f9de756f2ad" args="(final IPingListener listener)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">com.stateforge.statemachine.examples.ping.Ping.Ping </td>
          <td>(</td>
          <td class="paramtype">final <a class="el" href="interfacecom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_i_ping_listener.html">IPingListener</a>&#160;</td>
          <td class="paramname"><em>listener</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_ping_8java_source.html#l00025">25</a> of file <a class="el" href="_ping_8java_source.html">Ping.java</a>.</p>
<div class="fragment"><pre class="fragment">                                              {
        this.<a class="code" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#a1aa39c43bf959eb6bb938adf99649112">listener</a> = <a class="code" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#a1aa39c43bf959eb6bb938adf99649112">listener</a>;
        this.<a class="code" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#a241ba63cfe6f227a670dd658a2efe345">context</a> = <span class="keyword">new</span> PingContext(<span class="keyword">this</span>);
        this.<a class="code" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#a241ba63cfe6f227a670dd658a2efe345">context</a>.setObserver(ObserverConsole.getInstance());
        this.<a class="code" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#a241ba63cfe6f227a670dd658a2efe345">context</a>.setEndHandler(<span class="keyword">new</span> IContextEnd() {
            <span class="keyword">public</span> <span class="keywordtype">void</span> end() {
                <a class="code" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#ac0899a56518a4090289cd022b8870de9">printStatistics</a>();
                <a class="code" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#a1aa39c43bf959eb6bb938adf99649112">listener</a>.end(); 
            }
        });
        
        this.<a class="code" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#af56354b7b8c942d66b5a0f17252c0e91">echoClient</a> = <span class="keyword">new</span> EchoClient(<span class="keyword">new</span> IEchoClientListener() {
            <span class="keyword">public</span> <span class="keywordtype">void</span> messageReceived() {
               <a class="code" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#a3663cc57d600f444c8890aadf539d7ce">rx</a>++;
               <a class="code" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#a241ba63cfe6f227a670dd658a2efe345">context</a>.evPingReply();
            }

            <span class="keyword">public</span> <span class="keywordtype">void</span> error(String message) {
                <a class="code" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#a241ba63cfe6f227a670dd658a2efe345">context</a>.evError();
            }
        });
    }
</pre></div>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a5c370c554efb0f933a7362a8cbff5319"></a><!-- doxytag: member="com::stateforge::statemachine::examples::ping::Ping::getCount" ref="a5c370c554efb0f933a7362a8cbff5319" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int com.stateforge.statemachine.examples.ping.Ping.getCount </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_ping_8java_source.html#l00064">64</a> of file <a class="el" href="_ping_8java_source.html">Ping.java</a>.</p>
<div class="fragment"><pre class="fragment">                          {
        <span class="keywordflow">return</span> <a class="code" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#a6fe2bc15c87cda622ee2997b7750757f">count</a>;
    }
</pre></div>
</div>
</div>
<a class="anchor" id="a1d42d3706befbf16c5bb374a677d08a9"></a><!-- doxytag: member="com::stateforge::statemachine::examples::ping::Ping::getRx" ref="a1d42d3706befbf16c5bb374a677d08a9" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int com.stateforge.statemachine.examples.ping.Ping.getRx </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_ping_8java_source.html#l00048">48</a> of file <a class="el" href="_ping_8java_source.html">Ping.java</a>.</p>
<div class="fragment"><pre class="fragment">                       {
        <span class="keywordflow">return</span> <a class="code" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#a3663cc57d600f444c8890aadf539d7ce">rx</a>;
    }
</pre></div>
</div>
</div>
<a class="anchor" id="a15fc08493b6000c375041660f6cbb858"></a><!-- doxytag: member="com::stateforge::statemachine::examples::ping::Ping::getTimeout" ref="a15fc08493b6000c375041660f6cbb858" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">long com.stateforge.statemachine.examples.ping.Ping.getTimeout </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_ping_8java_source.html#l00072">72</a> of file <a class="el" href="_ping_8java_source.html">Ping.java</a>.</p>
<div class="fragment"><pre class="fragment">                             {
        <span class="keywordflow">return</span> <a class="code" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#aa066bc6d8f7649c28e3a86e6bcb5a11d">timeout</a>;
    }
</pre></div>
</div>
</div>
<a class="anchor" id="a3d411127043d4fb5f84dd508cffc6192"></a><!-- doxytag: member="com::stateforge::statemachine::examples::ping::Ping::getTx" ref="a3d411127043d4fb5f84dd508cffc6192" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int com.stateforge.statemachine.examples.ping.Ping.getTx </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_ping_8java_source.html#l00056">56</a> of file <a class="el" href="_ping_8java_source.html">Ping.java</a>.</p>
<div class="fragment"><pre class="fragment">                       {
        <span class="keywordflow">return</span> <a class="code" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#a9671e1e8f3d8844ec5ba49c20602fedf">tx</a>;
    }
</pre></div>
</div>
</div>
<a class="anchor" id="ac0899a56518a4090289cd022b8870de9"></a><!-- doxytag: member="com::stateforge::statemachine::examples::ping::Ping::printStatistics" ref="ac0899a56518a4090289cd022b8870de9" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void com.stateforge.statemachine.examples.ping.Ping.printStatistics </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_ping_8java_source.html#l00089">89</a> of file <a class="el" href="_ping_8java_source.html">Ping.java</a>.</p>
<div class="fragment"><pre class="fragment">                                 {
        <a class="code" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#a00abd306f3ef80fa11e7ca1bc5de492e">logger</a>.log(Level.INFO, <span class="keyword">this</span>.tx + <span class="stringliteral">&quot; packet(s) sent out of &quot;</span> + <span class="keyword">this</span>.count + <span class="stringliteral">&quot;, lost &quot;</span> + (<span class="keyword">this</span>.tx - <span class="keyword">this</span>.rx));
    }
</pre></div>
</div>
</div>
<a class="anchor" id="a119882e2142830ea9ca3ed3fe035d8a7"></a><!-- doxytag: member="com::stateforge::statemachine::examples::ping::Ping::send" ref="a119882e2142830ea9ca3ed3fe035d8a7" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void com.stateforge.statemachine.examples.ping.Ping.send </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_ping_8java_source.html#l00080">80</a> of file <a class="el" href="_ping_8java_source.html">Ping.java</a>.</p>
<div class="fragment"><pre class="fragment">                      {
        this.<a class="code" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#a9671e1e8f3d8844ec5ba49c20602fedf">tx</a>++;
        this.<a class="code" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#af56354b7b8c942d66b5a0f17252c0e91">echoClient</a>.send();
    }
</pre></div>
</div>
</div>
<a class="anchor" id="a3b929c12421e3421c968fbb2dc730c0f"></a><!-- doxytag: member="com::stateforge::statemachine::examples::ping::Ping::setCount" ref="a3b929c12421e3421c968fbb2dc730c0f" args="(int count)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void com.stateforge.statemachine.examples.ping.Ping.setCount </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>count</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_ping_8java_source.html#l00068">68</a> of file <a class="el" href="_ping_8java_source.html">Ping.java</a>.</p>
<div class="fragment"><pre class="fragment">                                    {
        this.<a class="code" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#a6fe2bc15c87cda622ee2997b7750757f">count</a> = <a class="code" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#a6fe2bc15c87cda622ee2997b7750757f">count</a>;
    }
</pre></div>
</div>
</div>
<a class="anchor" id="aa6e6f3b50e02ba2131c2d46eeff8ca77"></a><!-- doxytag: member="com::stateforge::statemachine::examples::ping::Ping::setRx" ref="aa6e6f3b50e02ba2131c2d46eeff8ca77" args="(int rx)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void com.stateforge.statemachine.examples.ping.Ping.setRx </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>rx</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_ping_8java_source.html#l00052">52</a> of file <a class="el" href="_ping_8java_source.html">Ping.java</a>.</p>
<div class="fragment"><pre class="fragment">                              {
        this.<a class="code" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#a3663cc57d600f444c8890aadf539d7ce">rx</a> = <a class="code" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#a3663cc57d600f444c8890aadf539d7ce">rx</a>;
    }
</pre></div>
</div>
</div>
<a class="anchor" id="aae8b319bed35cc56f584119ef93d5422"></a><!-- doxytag: member="com::stateforge::statemachine::examples::ping::Ping::setTimeout" ref="aae8b319bed35cc56f584119ef93d5422" args="(long timeout)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void com.stateforge.statemachine.examples.ping.Ping.setTimeout </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>timeout</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_ping_8java_source.html#l00076">76</a> of file <a class="el" href="_ping_8java_source.html">Ping.java</a>.</p>
<div class="fragment"><pre class="fragment">                                         {
        this.<a class="code" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#aa066bc6d8f7649c28e3a86e6bcb5a11d">timeout</a> = <a class="code" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#aa066bc6d8f7649c28e3a86e6bcb5a11d">timeout</a>;
    }
</pre></div>
</div>
</div>
<a class="anchor" id="a664f776e73fb8418e4b39b9f6f211734"></a><!-- doxytag: member="com::stateforge::statemachine::examples::ping::Ping::setTx" ref="a664f776e73fb8418e4b39b9f6f211734" args="(int tx)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void com.stateforge.statemachine.examples.ping.Ping.setTx </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>tx</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_ping_8java_source.html#l00060">60</a> of file <a class="el" href="_ping_8java_source.html">Ping.java</a>.</p>
<div class="fragment"><pre class="fragment">                              {
        this.<a class="code" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#a9671e1e8f3d8844ec5ba49c20602fedf">tx</a> = <a class="code" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#a9671e1e8f3d8844ec5ba49c20602fedf">tx</a>;
    }
</pre></div>
</div>
</div>
<a class="anchor" id="a2f4d03d331d0fc751ebac432fb2cb0a9"></a><!-- doxytag: member="com::stateforge::statemachine::examples::ping::Ping::start" ref="a2f4d03d331d0fc751ebac432fb2cb0a9" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void com.stateforge.statemachine.examples.ping.Ping.start </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_ping_8java_source.html#l00085">85</a> of file <a class="el" href="_ping_8java_source.html">Ping.java</a>.</p>
<div class="fragment"><pre class="fragment">                       {
        this.<a class="code" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#a241ba63cfe6f227a670dd658a2efe345">context</a>.evStart();
    } 
</pre></div>
</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="a241ba63cfe6f227a670dd658a2efe345"></a><!-- doxytag: member="com::stateforge::statemachine::examples::ping::Ping::context" ref="a241ba63cfe6f227a670dd658a2efe345" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">final PingContext <a class="el" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#a241ba63cfe6f227a670dd658a2efe345">com.stateforge.statemachine.examples.ping.Ping.context</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_ping_8java_source.html#l00016">16</a> of file <a class="el" href="_ping_8java_source.html">Ping.java</a>.</p>

</div>
</div>
<a class="anchor" id="a6fe2bc15c87cda622ee2997b7750757f"></a><!-- doxytag: member="com::stateforge::statemachine::examples::ping::Ping::count" ref="a6fe2bc15c87cda622ee2997b7750757f" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#a6fe2bc15c87cda622ee2997b7750757f">com.stateforge.statemachine.examples.ping.Ping.count</a> = 5<code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_ping_8java_source.html#l00019">19</a> of file <a class="el" href="_ping_8java_source.html">Ping.java</a>.</p>

</div>
</div>
<a class="anchor" id="af56354b7b8c942d66b5a0f17252c0e91"></a><!-- doxytag: member="com::stateforge::statemachine::examples::ping::Ping::echoClient" ref="af56354b7b8c942d66b5a0f17252c0e91" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_echo_client.html">EchoClient</a> <a class="el" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#af56354b7b8c942d66b5a0f17252c0e91">com.stateforge.statemachine.examples.ping.Ping.echoClient</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_ping_8java_source.html#l00015">15</a> of file <a class="el" href="_ping_8java_source.html">Ping.java</a>.</p>

</div>
</div>
<a class="anchor" id="a1aa39c43bf959eb6bb938adf99649112"></a><!-- doxytag: member="com::stateforge::statemachine::examples::ping::Ping::listener" ref="a1aa39c43bf959eb6bb938adf99649112" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">final <a class="el" href="interfacecom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_i_ping_listener.html">IPingListener</a> <a class="el" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#a1aa39c43bf959eb6bb938adf99649112">com.stateforge.statemachine.examples.ping.Ping.listener</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_ping_8java_source.html#l00022">22</a> of file <a class="el" href="_ping_8java_source.html">Ping.java</a>.</p>

</div>
</div>
<a class="anchor" id="a00abd306f3ef80fa11e7ca1bc5de492e"></a><!-- doxytag: member="com::stateforge::statemachine::examples::ping::Ping::logger" ref="a00abd306f3ef80fa11e7ca1bc5de492e" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">final Logger <a class="el" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#a00abd306f3ef80fa11e7ca1bc5de492e">com.stateforge.statemachine.examples.ping.Ping.logger</a> = Logger.getLogger(Ping.class.getName())<code> [static, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_ping_8java_source.html#l00023">23</a> of file <a class="el" href="_ping_8java_source.html">Ping.java</a>.</p>

</div>
</div>
<a class="anchor" id="a3663cc57d600f444c8890aadf539d7ce"></a><!-- doxytag: member="com::stateforge::statemachine::examples::ping::Ping::rx" ref="a3663cc57d600f444c8890aadf539d7ce" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#a3663cc57d600f444c8890aadf539d7ce">com.stateforge.statemachine.examples.ping.Ping.rx</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_ping_8java_source.html#l00017">17</a> of file <a class="el" href="_ping_8java_source.html">Ping.java</a>.</p>

</div>
</div>
<a class="anchor" id="aa066bc6d8f7649c28e3a86e6bcb5a11d"></a><!-- doxytag: member="com::stateforge::statemachine::examples::ping::Ping::timeout" ref="aa066bc6d8f7649c28e3a86e6bcb5a11d" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">long <a class="el" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#aa066bc6d8f7649c28e3a86e6bcb5a11d">com.stateforge.statemachine.examples.ping.Ping.timeout</a> = 1000<code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_ping_8java_source.html#l00020">20</a> of file <a class="el" href="_ping_8java_source.html">Ping.java</a>.</p>

</div>
</div>
<a class="anchor" id="a9671e1e8f3d8844ec5ba49c20602fedf"></a><!-- doxytag: member="com::stateforge::statemachine::examples::ping::Ping::tx" ref="a9671e1e8f3d8844ec5ba49c20602fedf" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classcom_1_1stateforge_1_1statemachine_1_1examples_1_1ping_1_1_ping.html#a9671e1e8f3d8844ec5ba49c20602fedf">com.stateforge.statemachine.examples.ping.Ping.tx</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_ping_8java_source.html#l00018">18</a> of file <a class="el" href="_ping_8java_source.html">Ping.java</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/main/java/com/stateforge/statemachine/examples/ping/<a class="el" href="_ping_8java_source.html">Ping.java</a></li>
</ul>
</div>
﻿<div id="footer">
    <hr />
    <p>
        Copyright &copy; 2011 StateForge.</p>
    <hr />
</div>
</body> </html> 
